//生成从minNum到maxNum的随机数
function randomNum(minNum = 0, maxNum = 1) {
    return minNum + (maxNum - minNum) * Math.random()
}
// 生成随机颜色
function randomColor(){
    return '#'+('00000'+ (Math.random()*0x1000000<<0).toString(16)).substr(-6);
}

export default {
    randomNum,
    randomColor
}